package com.nobug.service.region;

import com.nobug.bean.BaseRespVo;
import com.nobug.bean.region.RegionDataBean;
import com.nobug.mapper.regionMapper.RegionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegionServiceImpl implements RegionService{
    @Autowired
    RegionMapper regionMapper;
    @Override
    public BaseRespVo<List<RegionDataBean>> getRegionList() {
        List<RegionDataBean> dataBean = regionMapper.selectRegionByType(1);
        return BaseRespVo.ok(dataBean);
    }
}
